package cn.yuan;

import cn.yuan.user.domain.Logininfo;
import cn.yuan.user.service.impl.LogininfoServiceImpl;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.data.redis.core.RedisTemplate;

public class RedisTest extends BaseTest {

    @Autowired
    @Qualifier("redisTemplate")
    private RedisTemplate template;
    @Autowired
    private LogininfoServiceImpl logininfoService;
    @Test
    public void test1() throws Exception {
        Logininfo logininfo = new Logininfo();
        logininfo.setPassword("112");
        logininfoService.save(logininfo);
    }

    @Test
    public void test() throws Exception{
        System.out.println(template);
    }

}
